Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(policy): run status reconcilation at fixed interval #13384

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Nov 24, 2024

The status reconcilation loop runs differently than it seems is intended (based on the original DEBUG logging): reconcilation is triggered every time that the lease updates, even when there is no change in leadership. The code seems to assume that the lease only updates when leadership changes, but this is not the case.

This commit updates the status reconcilation loop to use a timer. The timer is reset when leadership is acquired so that reconcilation is triggered at a fixed interval.

@olix0r olix0r force-pushed the ver/policy-log-reconcile branch 3 times, most recently from 9fee7da to 128c737 Compare November 24, 2024 18:13
@olix0r olix0r force-pushed the ver/policy-log-noise branch 3 times, most recently from cbf6550 to fb99223 Compare November 24, 2024 19:26
@olix0r olix0r force-pushed the ver/policy-log-reconcile branch from 128c737 to 6eb80ef Compare November 24, 2024 19:27
@olix0r olix0r force-pushed the ver/policy-log-noise branch 2 times, most recently from bd88260 to 5e3ff63 Compare November 25, 2024 01:31
@olix0r olix0r force-pushed the ver/policy-log-reconcile branch 3 times, most recently from 0dc68be to f6ac870 Compare November 25, 2024 15:57
@olix0r olix0r force-pushed the ver/policy-log-noise branch from 5e3ff63 to 712c9bd Compare November 25, 2024 16:04
@olix0r olix0r force-pushed the ver/policy-log-reconcile branch from f6ac870 to f6e4b2e Compare November 25, 2024 16:04
@olix0r olix0r force-pushed the ver/policy-log-noise branch from 712c9bd to 9bd5387 Compare November 25, 2024 16:39
@olix0r olix0r force-pushed the ver/policy-log-reconcile branch 2 times, most recently from 16d4327 to 422ce62 Compare November 25, 2024 16:46
Base automatically changed from ver/policy-log-noise to main November 25, 2024 17:12
The status reconcilation loop runs differently than it seems is intended (based
on the original DEBUG logging): reconcilation is triggered every time that the
lease updates, even when there is no change in leadership. The code seems to
assume that the lease only updates when leadership changes, but this is not the
case.

This commit updates the status reconcilation loop to use a timer. The timer is
reset when leadership is acquired so that reconcilation is triggered at a fixed
interval.
@olix0r olix0r force-pushed the ver/policy-log-reconcile branch from 422ce62 to 00b0a95 Compare November 25, 2024 17:51
@olix0r olix0r marked this pull request as ready for review November 25, 2024 17:52
@olix0r olix0r requested a review from a team as a code owner November 25, 2024 17:52
@olix0r olix0r enabled auto-merge (squash) November 25, 2024 18:08
@olix0r olix0r merged commit b19fcad into main Nov 25, 2024
42 checks passed
@olix0r olix0r deleted the ver/policy-log-reconcile branch November 25, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants